package com.example.common.global;

/**
 * @author Aaron
 * @since 2021/9/6 14:03
 * <p>描述：</p>
 */
public class BaseController {

    public <T> CommonResponse<T> success(String msg) {
        return CommonResponse.success(msg);
    }

    public <T> CommonResponse<T> success(T data, String msg) {
        return CommonResponse.success(data, msg);
    }

    public <T> CommonResponse<T> error(String msg) {
        return CommonResponse.error(msg);
    }

    public <T> CommonResponse<T> error(String msg, Object... args) {
        return CommonResponse.error(msg, args);
    }

}
